#pragma once

#include <string>
#include <vector>
#include <map>
#include <iostream>
#include <fstream>


using namespace std;

class curlWrapper
{
public:
	curlWrapper(void);
	curlWrapper(string);
	~curlWrapper(void);
	void setopfilename(string);
	void add_edge(int,int,float);
	int remove_edge(int,int);
	void change_edge(int ,int ,map<string,string> );
	void change_node(int,map<string,string>);
	void read_events_from_file(string ipfilename);
	void loadXYZcoordinates(string ipfilename);
	void loadtimesorted(string ipfilename);
	void add_edge(int ,map<string,string> ,int ,map<string,string> ,map<string,string> );
	void add_node(int , map<string,string>);
	string modifySize(string);
	void closeOfStream();
private:
	
	string url;
	map<int,bool> nodesadded;
	map<string,bool> edges_present;
	map<string,bool> edges_to_be_added;
	struct XYZcoord {
		float X;
		float Y;
		float Z;
	};
	map<int,XYZcoord> nodeXYZ;
	std::ofstream everecptr;
};

